# 编译用户的硬件驱动源文件为二进制库文件

include $(RULES)/defs.common.mk
include $(RULES)/defs.src.inc.mk

LIB_BASE_NAME = main
INPUT_ENTRY_FILE = 1

C_EXCLUDE = $(shell ls startup_*.c)
C_SOURCE = $(filter-out $(C_EXCLUDE), $(wildcard *.c))

ifeq ($(FamilyOfMcu), STM32F10X_LD)
C_SOURCE += startup_ld.c
endif
ifeq ($(FamilyOfMcu), STM32F10X_MD)
C_SOURCE += startup_md.c
endif
ifeq ($(FamilyOfMcu), STM32F10X_HD)
C_SOURCE += startup_hd.c
endif
# todo
# 还未实现，等待实现该家族的芯片的向量表定义
ifeq ($(FamilyOfMcu), STM32F10X_XL)
C_SOURCE += startup_xl.c
endif

include $(RULES)/build.rules.common.mk

